﻿using System;
using System.Collections.Generic;
using Systemathics.FrameWork;

namespace Systemathcs.Automates
{
    [Parameters("Systemathics.Automates.IndexPumping.xlsx")]
    [Pattern("Systemathics.Automates.IndexPumping.dll", "1.0")]
    public class IndexPumping : Strategy
    {
        private Dictionary<Guid, Decimal> weights;

        public override void OnStart()
        {
            weights = new Dictionary<Guid, decimal>();
            foreach (var i in Instruments.Values)
            {
                if (Params.ContainsKey(i.StaticData.Name))
                {
                    weights[i.Id] = ((decimal)Params[i.StaticData.Name]["Weight"]);
                    Draw(i, Data.Trade, null, null);
                }
            }
            base.OnStart();
        }

        public override void OnStop()
        {

            base.OnStop();
        }

    }
}
